package unit01;


/**
 * MyInterface是一个包含静态方法和默认方法的函数式接口
 * @FunctionalInterface注解会触发编译时校验（compile-time check)
 * */
@FunctionalInterface
public interface MyInterface {
	int myMethod();

	default String sayHello() {
		return "Hello World!";
	}

	static void myStaticMethod() {
		System.out.println("I am a static method in an interface! ");
	}
}
